<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<WebClient.Models.ViewModels.GroupViewModel>" %>
<div class="AdminPageText">
List Of InformationWeb
</div>
<table class="Grid" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<th>Email</th>
			<th>Address</th>
			<th></th>
			<th></th>
		<tr>
	</thead>
	<% for (int i=0; i<Model.InformationWebModel.GetModel.LstObjModel.Count; i++){
		if (i % 2 != 0) {%>
		<tr class="Row" id="row-<%= Model.InformationWebModel.GetModel.LstObjModel[i].ID %>">
		<% }
		else { %>
		<tr class="AlternatingRow" id="row-<%= Model.InformationWebModel.GetModel.LstObjModel[i].ID %>">
		<% } %>
			<td><span style=""><%= Model.InformationWebModel.GetModel.LstObjModel[i].Email %></span></td>
			<td><span style=""><%= Model.InformationWebModel.GetModel.LstObjModel[i].Address %></span></td>
			<td>
				<%= Ajax.ActionLink("Edit", "EditInformationWeb", "Admin", new { page = Model.InformationWebModel.GetModel.CurrentPage, id = Model.InformationWebModel.GetModel.LstObjModel[i].ID }, new AjaxOptions { UpdateTargetId = "PartialDiv" })%>
			</td>
			<td>
				<a href="../../Admin/DeleteInformationWeb?id=<%= Model.InformationWebModel.GetModel.LstObjModel[i].ID %>&page=<%= Model.InformationWebModel.GetModel.CurrentPage %>" onclick="return confirm('Are you sure you want to Delete it? This action cannot be undone.');">Delete</a>
			</td>
		</tr>
	<% } %>  
</table>
